package com.qf.openapi.web.master.dao;

import com.qf.openapi.web.master.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface UserDao {
    public User getUserById(@Param("id") Integer id);


    /**
     * 根据用户名查用户
     *
     * @param username
     * @return
     */
    public User getUserByName(@Param("username") String username);

    int addUser(User user);

    List<User> selectAll(@Param("name") String name, @Param("sex") String sex, @Param("birthday") String birthday);

    int countAll();

    int insertUser(User user);

    int deleteUser(@Param("id") Integer id);

    int updateUser(User user);

    List<User> getAllUser();

    void insertListUser(@Param("userList") List<User> userList);

}
